
These files are used to replicate all analyses in "Ethnic Campaign Appeals: To Bond, Bridge, or Bypass?"

Before running the do files you must set Stata's home directory to where you have stored the files.

Stata 16 was used to do the analysis, but versions as early as 12.1 should also work. 
To run analysis.do you need to install:
	outreg2


To run the files go into the do folder and then:
1. Run appeals.do. This makes the dependent variables from the election poster codes csv file. It saves out as dta\appeals.dta.
2. Run db.do. It does all the variable transformations and data cleaning. It uses the csv files stored in the csv folder and the dta\appeals.dta file. It creates a file called dta\db.dta.
3. Run an.do. It uses the dta\db.dta file and runs all the estimation and graphing commands for all the tables and figures. They are saved in the tables and figures folders.


Description of Files and Folders

readme.txt
	This file that you are reading.

\csv
	This folder contains all the csv data files.
	
\do
	This folder contains all the do files to made the database and do the analysis
	
		appeals.do
			The file that creates the dependent variables from the election poster codes.

		db.do
			The file that makes the database.

		an.do
			The file used in the analysis.

\dta
	This folder is is where all the .dta files will be stored after the do files are run.
		
		readme_dta.txt
			Text file indicating the purpose of the folder.

\tables
	This folder will contain all tables generated by an.do
		
		readme_dta.txt
			Text file indicating the purpose of the folder.

\figures
	This folder will contain all figures generated by an.do
		
		readme_dta.txt
			Text file indicating the purpose of the folder.
	

If you have any questions on the files or find any errors, please let me know at colmfox@smu.edu.sg.


***********************
September 26 2022
Singapore


